import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
const Community: AppRouteRecordRaw = {
  path: '/community',
  name: 'community',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '种草',
    icon: 'icon-cloud',
    requiresAuth: true,
    order: 5,
  },
  children: [
    {
      path: '/community/topic',
      name: 'communityTopic',
      component: () => import('@/views/community/topic.vue'),
      meta: {
        locale: '社区主题',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/community/tag',
      name: 'communityTag',
      component: () => import('@/views/community/tag.vue'),
      meta: {
        locale: '社区话题',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/community/category',
      name: 'communityCategory',
      component: () => import('@/views/community/category.vue'),
      meta: {
        locale: '社区分类',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/community/config',
      name: 'communityConfig',
      component: () => import('@/views/community/config.vue'),
      meta: {
        locale: '社区配置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default Community
